<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%friendsite}}".
 *
 * @property integer $ID
 * @property string $FriendSiteLinkType
 * @property string $SiteUrl
 * @property string $SiteIntro
 * @property string $LogoUrl
 * @property string $SiteAdmin
 * @property string $SiteEmail
 * @property string $SitePassword
 * @property string $ConfirmPassword
 * @property integer $IsElite
 * @property string $Starts
 */
class DhFriendsite extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%friendsite}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ID'], 'required'],
            [['ID', 'IsElite'], 'integer'],
            [['SiteIntro'], 'string'],
            [['FriendSiteLinkType', 'SiteUrl', 'LogoUrl', 'SiteAdmin', 'SiteEmail', 'SitePassword', 'ConfirmPassword', 'Starts'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'FriendSiteLinkType' => 'Friend Site Link Type',
            'SiteUrl' => 'Site Url',
            'SiteIntro' => 'Site Intro',
            'LogoUrl' => 'Logo Url',
            'SiteAdmin' => 'Site Admin',
            'SiteEmail' => 'Site Email',
            'SitePassword' => 'Site Password',
            'ConfirmPassword' => 'Confirm Password',
            'IsElite' => 'Is Elite',
            'Starts' => 'Starts',
        ];
    }
}
